package com.um.springboot.starter.properties;

import com.um.springboot.starter.constants.SmsConsts;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.util.LinkedHashMap;
import java.util.Map;

/**
 * @Title
 * @Description
 * @Author renjunwei
 * @Date 2023/7/13 16:38
 */
@Data
@Configuration
@ConfigurationProperties("hsh.thai-bulk-sms")
public class ThaiBulkSmsProperties {


    private String sender;


    private String apiKey;


    private String apiSecret;

    /**
     * 短信模板
     */
    private Map<String, String> templates = new LinkedHashMap<>();

    public ThaiBulkSmsProperties() {
        templates.put(SmsConsts.VERIFICATION_CODE_TEMPLATE, "Your verification code is: {}");
    }
}
